package com.afdor.rws.dlock.lock;

import com.afdor.rws.annotation.extension.SPI;
import lombok.NonNull;

/**
 * 分布式读写锁
 *
 * @author 悭梵
 * @date Created in 2018-08-30 16:18
 */
@SPI("zookeeper")
public interface ReentrantReadWriteLock {

    @NonNull
    ReentrantLock readLock();

    @NonNull
    ReentrantLock writeLock();
}
